import axios from "axios";
import {LoginData, LoginRes} from "@/api/user";
import {configs} from "@typescript-eslint/eslint-plugin";

export interface PopularRecord {
    key: number;
    clickNumber: string;
    title: string;
    increases: number;
}
export interface PolicyRecord {
    id: number;
    cat_id: number;
    cat_second_id: number;
    code: string;
    purchase_voucher:string;
    create_time: string;
    status: number;
    cat_name: string;
    cat_second_name: string;
}

export interface PolicyParams extends Partial<PolicyRecord> {
    current: number;
    pageSize: number;
    selected:number;

}
export interface Pagination {
    current: number;
    pageSize: number;
    total?: number;
    selected:number;
}


export function queryPropertiesList() {
    return axios.get<any>('/admin/machine_attr/list');
}